<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>P156</title>    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  
  <body>
    <%
    	Map<String,String> map=new LinkedHashMap<String,String>();
    	map.put("百度","http://www.baidu.com/");
    	map.put("雅虎","http://cn.yahoo.com/");
    	map.put("谷歌","http://www.google.com/");
    	request.setAttribute("map",map);
     %>
     <table width="400px" border="1" cellspacing="0">	
     	<c:forEach items="${map}" var="entry">
    	 	<tr align="center">
    	 		<td><c:out value="${entry.key }"></c:out></td>
    	 		<td><c:out value="${entry.value }"></c:out></td>
    	 	</tr>	     
     	</c:forEach>
     </table>
  </body>
</html>
